// 关于admin的所有接口
import axiosp from '@/apis/axios/indexp.js'
const baseUrl = `/admin`

// admin 角色列表列表信息
export function getlist(params) {
	return axiosp.request({
		url: `${baseUrl}/userRole/listOptions`,
		method: 'post',
		data: params
	})
}



// 新增admin类别
export function addData(params) {
	return axiosp.request({
		url: `${baseUrl}/customer/addOrUpdateData`,
		method: 'post',
		data: params
		// name: "1111222"
		// pid: "1675479784274132992"
	})
}

// 删除admin类别
export function delectData(params) {
	return axiosp.request({
		url: `${baseUrl}/goodCat/delete`,
		method: 'post',
		data: params
		// name: "1111222"
		// pid: "1675479784274132992"
	})
}
